using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.Remoting;
using System.Text;
using System.Web;

namespace Sedna.API.Remoting
{
    public class RemotingConfigurator
    {
        private static bool isConfigured = false;                
        
        public static void Configure(Assembly assembly)
        {
            if (isConfigured) return;
            isConfigured = true;

            Uri uri = new Uri(assembly.CodeBase);
            RemotingConfiguration.Configure(HttpUtility.UrlDecode(uri.AbsolutePath+".config"), false);
            
        }
    }
}

